<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
	xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
      >
<head>

</head>
<body>
	<ui:composition template="/templates/template.xhtml">
	

	<ui:define name="contenu">
		<f:view>
		<br/><br/><br/>
			<h:form>
	
				<center>
					<b><h:outputText value="Bienvenue :" />
					<i><h:outputText value="#{controllerBeanJsf.customer.login}" /> !</i></b>
			        <br></br>
									
				</center>
					<hr />
			<table>
					<tr>
					   <td>Nom :</td> <td><h:outputText value="#{controllerBeanJsf.customer.lastname}" /></td>
					</tr>
					<tr> 
						<td>Prenom :</td> <td><h:outputText value="#{controllerBeanJsf.customer.firstname}" /></td>
					</tr>
					<tr>
					   <td>Date de naissance :</td><td> <h:outputText value="#{controllerBeanJsf.customer.birthDay}" /></td>
					</tr>
					<tr>
						<td>Adresse :</td> 
						<td>
							<h:outputText value="#{controllerBeanJsf.customer.address.street}" />
							- <h:outputText value="#{controllerBeanJsf.customer.address.zipCode}" />
							, <h:outputText value="#{controllerBeanJsf.customer.address.city}" />
							, <h:outputText value="#{controllerBeanJsf.customer.address.country}" />
						
						</td>
					</tr> 
					<tr>
						<td>Email :</td><td> <h:outputText value="#{controllerBeanJsf.customer.mail}" /></td>
					</tr> 
					<tr>
					    <td>Tel :</td><td> <h:outputText value="#{controllerBeanJsf.customer.phoneNumber}" /></td>
					</tr> 
					<tr>
						<td>Identifiant :</td><td> <h:outputText value="#{controllerBeanJsf.customer.login}" /></td>
					</tr>
			</table>
			
					<br/><br/><br/>
					<br />
					
			        <h:commandButton value="Supprimer mon compte" 
			        style="background:purple; color:white;border: 2px solid grey;border-radius:5px; height:30px"
			        action="#{controllerBeanJsf.doDelete}" />
			         <h:commandButton value="Modifier" 
					style="background:purple; color:white;border: 2px solid grey;border-radius:5px; height:30px"
					action="#{controllerBeanJsf.goUpdateCustomer}" />
		     	 </h:form>
		     	 <br/><br/><br/>
		     	 <hr />	
		     	 <h:form>
		     	
		     	 </h:form>
		     	 <h:form>
		     	 	<h:commandLink value="Accès à mes prévédentes commandes" action="#{controllerBeanJsf.getAllOrders}" />
				</h:form>
		     	
		     	 
			</f:view>
		</ui:define>
	
</ui:composition>
</body>
</html>